Ensure we initialise the cpu_present_map before
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 15 Nov 2005 17:43:28 +0000 (18:43 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 15 Nov 2005 17:43:28 +0000 (18:43 +0100)
commitfcde973e26c585ade21bb16dd13df5205a4f0998
tree37b5de8c2840b715bde206e54959bccb0f5c0857
parent56be995b8a60ebe8a30e349674cc8abae5e1a559
Ensure we initialise the cpu_present_map before
topology_init() is called. In latest Linux kernels it
iterates over cpu_present_map rather than cpu_possible_map.

Also, save/restore should really iterate over
possible cpus, not present ones (not that it really matters,
but it's a small cleanup).

Signed-off-by: Keir Fraser <keir@xensource.com>
linux-2.6-xen-sparse/arch/xen/kernel/reboot.c
linux-2.6-xen-sparse/arch/xen/kernel/smpboot.c